const mongoose = require('mongoose')
const Schema = mongoose.Schema
const schema = new Schema({
  username: { type: String },
  image: { type: String },
  title: { type: String },
  time: { type: String },
  category: { type: String },
  lastReply: {
    user: { type: String },
    time: { type: String }
  },
  reply: { type: Number },
  isGood: { type: Boolean }
})
module.exports = mongoose.model('Topic', schema)
